from pydantic import BaseModel, ConfigDict, Field
from pydantic.alias_generators import to_camel
from typing import List, Literal, Optional, Union
from datetime import datetime

class BaseMinXinModel(BaseModel):
    """
    表对应pydantic基础模型
    """
    model_config = ConfigDict(alias_generator=to_camel, from_attributes=True, )
    id: Optional[int] = Field(default=None, description='id')
    create_by: Optional[int] =  Field(default=None, description='创建者')
    create_time: Optional[datetime] =  Field(default=None, description='创建时间')
    del_flag: Optional[str] =  Field(default=None, description='删除标志')
    dept_id: Optional[int] =  Field(default=None, description='部门id')
    update_time: Optional[datetime] =  Field(default=None, description='更新时间')